package common;

public class TagChanger {
	public static String tag(String tokens){
		tokens = tokens.replace("<", "&lt;");
		tokens = tokens.replace(">", "&gt;");
		tokens = tokens.replace("  ", "&nbsp;&nbsp;");
		tokens = tokens.replace("\n","<br/>");
		
		return tokens;
	}
	
	public static String deTag(String tokens){
		//tokens = tokens.replace("<", "&lt;");
		//tokens = tokens.replace(">", "&gt;");
		//tokens = tokens.replace("  ", "&nbsp;&nbsp;");
		tokens = tokens.replace( "<br/>","\n");
		return tokens;
	}
}
